import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/login',
    name: 'AdminLogin',
    component: () => import('./views/AdminLogin.vue')
  },
  {
    path: '/',
    redirect: '/login',
    meta: { requiresAuth: true },
  },
  {
    path: '/admin/dashboard',
    name: 'ProductReview',
    component: () => import('./views/ProductReviewView.vue'),
    meta: { requiresAuth: true }
  }
]

export default createRouter({
  history: createWebHashHistory(),
  routes
})